package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IUserBaseCanDoLogDao;
import org.jsbd.boss.domian.WbUserBaseCanDoLog;
import org.springframework.stereotype.Repository;

@Repository("userBaseCanDoLogDao")
public class UserBaseCanDoLogDaoImpl extends WebmengLogBaseDao implements IUserBaseCanDoLogDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<WbUserBaseCanDoLog> getList(WbUserBaseCanDoLog log) {
		return super.queryForList("wb_user_base_can_do_log.select_user_base_can_do_log_list", log);
	}

	@Override
	public Integer getListPageCount(WbUserBaseCanDoLog log) {
		return super.queryForCount("wb_user_base_can_do_log.select_user_base_can_do_log_page_count", log);
	}

	@Override
	public WbUserBaseCanDoLog getById(Long id) {
		return (WbUserBaseCanDoLog) super.queryForObject("wb_user_base_can_do_log.select_by_id", id);
	}

}
